import service from '@/utils/request';

export default null;

// 指标数据
export const getDataList = (params?: any) => {
  return service.request({
    url: '/patient/SysPatientAllController/selectPatientAllList',
    method: 'get',
    params,
  });
};
// 新增患者
export const addPatientAll = (data?: any) => {
  return service.request({
    url: '/patient/SysPatientAllController/addPatientAll',
    method: 'post',
    data,
  });
};
// 删除患者信息
export const removePatientAll = (userId: any) => {
  return service.request({
    url: `/patient/SysPatientAllController/removePatientAll`,
    method: 'post',
    params: {
      userId,
    },
  });
};
// 批量删除患者信息
export const removePatientAlls = (userIds: any) => {
  return service.request({
    url: `/patient/SysPatientAllController/removePatientAlls`,
    method: 'post',
    params: {
      userIds,
    },
  });
};

export const updatePatientAll = (data: any) => {
  return service.request({
    url: `/patient/SysPatientAllController/updatePatientAll`,
    method: 'POST',
    data,
  });
};
